 function exc_sf(fmobj, v) {
		        if (fmobj.name == "calc1") {
		            if (v == 2) {

		                document.getElementById("calc1_esf").style.display = "block";
		                document.getElementById("calc1_xf").style.display = "none";
		                document.getElementById("housezj").style.display = "";
		                document.getElementById("jizheng").style.display = "";
		                document.getElementById("xingzhi").style.display = "";
		                document.getElementById("man5").style.display = "";
		                document.getElementById("shoutao").style.display = "";
		                document.getElementById("weiyi").style.display = "";
		                fmobj.reset();

		            } else {
		                document.getElementById("calc1_esf").style.display = "none";
		                document.getElementById("calc1_xf").style.display = "block";
		                document.getElementById("housezj").style.display = "none";
		                document.getElementById("jizheng").style.display = "none";
		                document.getElementById("xingzhi").style.display = "none";
		                document.getElementById("man5").style.display = "none";
		                document.getElementById("shoutao").style.display = "none";
		                document.getElementById("weiyi").style.display = "none";
		                document.getElementById("chajia").style.display = "none";
		                fmobj.reset();
		                fmobj.typeRadio[1].checked = true;
		            }
		        }
		    }

		    function exc_yj(fmobj) {
		        var jzfs = document.getElementById("jzfs").value.toString();
		        if (jzfs == "差价") {
		            document.getElementById("chajia").style.display = '';
		        } else {
		            document.getElementById("chajia").style.display = 'none';
		        }

		    }

		    function exc_yxz(fmobj) {
		        var housexz = document.getElementById("housexz").value.toString();
		        if (housexz == "经济适用房") {
		            document.getElementById("man5").style.display = 'none';
		        } else {
		            document.getElementById("man5").style.display = '';
		        }

		    }

		    function ext_total(fmobj) {
		        var houseprice = parseFloat(document.getElementById("houseprice").value.toString()); //房屋总价
		        var housedw = document.getElementById("housedw").value.toString(); //总价单位
		        var houseyprice = parseFloat(document.getElementById("houseyprice").value.toString()); //房屋原价
		        var fwdj = parseFloat(document.getElementById("dj").value.toString());  //房屋单价
		        var houseypricedw = document.getElementById("houseypricedw").value.toString(); //原价单位
		        var housearea = parseFloat(document.getElementById("housearea").value.toString()); //房屋面积      
		        if (isNaN(housearea))
		        {
		            alert("请输入房屋面积");
		            return;
		        }
		        if (isNaN(fwdj)) {
		            alert("请输入房屋单价");
		            return;
		        }
		        var housexz = document.getElementById("housexz").value.toString();//房屋性质
		        var strjzfs = document.getElementById("jzfs").value.toString();//计价方式
		        var radiox = document.getElementsByName("radiox");//是否满5年
		        var radioQ = document.getElementsByName("radioQ");//是否首套住房
		        var only = document.getElementsByName("only");//是否唯一住房
		        var strRadiox; //是否满5年
		        var strRadioq; //是否首套住房
		        var strOnly; //是否唯一住房
		        for (var i = 0; i < radiox.length; i++) {
		            if (radiox.item(i).checked) {
		                strRadiox = radiox.item(i).getAttribute("value");
		                break;
		            } else {
		                continue;
		            }
		        }
		        for (var i = 0; i < radioQ.length; i++) {
		            if (radioQ.item(i).checked) {
		                strRadioq = radioQ.item(i).getAttribute("value");
		                break;
		            } else {
		                continue;
		            }
		        }
		        for (var i = 0; i < only.length; i++) {
		            if (only.item(i).checked) {
		                strOnly = only.item(i).getAttribute("value");
		                break;
		            } else {
		                continue;
		            }
		        }
		        //总价处理
		        if (housedw == "万元") {
		            houseprice = houseprice * 10000
		        }
		        if (houseypricedw == "万元") {
		            houseyprice = houseyprice * 10000
		        }
		        var qishui = 0; //契税
		        var yyshu = 0; //营业税
		        var grsdshui = 0; //个人所得税
		        var gbshui = 5; //工本税
		        var yhshui = 0; //印花税
		        var zhdijikuai = 0; //综合地价款
		        if (housexz == "普通住宅") {
		            if (strRadioq == "是") {
		                if (housearea < 90) {
		                    qishui = houseprice * 1 / 100;
		                } else if (90 < housearea < 140 || housearea == 90) {
		                    qishui = houseprice * 1.5 / 100;
		                } if (housearea > 140 || housearea == 140) {
		                    qishui = houseprice * 3 / 100;
		                }
		            } else {
		                qishui = houseprice * 3 / 100;
		            }
		            if (strRadiox == "是") {

		                if (housearea > 140 || housearea == 140) {
		                    if (strjzfs == "总价") {
		                        yyshui = houseprice * 56 / 1000;
		                    } else {
		                        yyshui = houseprice - houseyprice;
		                        yyshui = yyshui * 56 / 1000;
		                    }

		                } else {
		                    yyshui = 0;
		                }
		                if (strOnly == "是") {
		                    grsdshui = 0;
		                } else {
		                    if (strjzfs == "总价") {
		                        grsdshui = houseprice * 1 / 100;
		                    } else {
		                        grsdshui = houseprice - houseyprice;
		                        grsdshui = grsdshui * 20 / 100;
		                    }

		                }

		            } else {
		                if (strjzfs == "总价") {
		                    grsdshui = houseprice * 1 / 100;
		                } else {
		                    grsdshui = houseprice - houseyprice;
		                    grsdshui = grsdshui * 20 / 100;
		                }

		                yyshui = houseprice * 56 / 1000;
		            }

		            zhdijikuai = 0;
		        }
		        else if (housexz == "非普通住宅") {
		            qishui = houseprice * 3 / 100;
		            if (strjzfs == "总价") {
		                yyshui = houseprice * 56 / 1000;
		            } else {
		                yyshui = houseprice - houseyprice;
		                yyshui = yyshui * 56 / 1000;
		            }
		            if (strRadiox == "是" && strRadioq == "是") {
		                if (strjzfs == "总价") {
		                    grsdshui = houseprice * 1 / 100;
		                } else {

		                    grsdshui = houseprice - houseyprice;
		                    grsdshui = grsdshui * 20 / 100;
		                }
		            } else {

		                if (strjzfs == "总价") {
		                    grsdshui = houseprice * 1 / 100;
		                } else {

		                    grsdshui = houseprice - houseyprice;
		                    grsdshui = grsdshui * 20 / 100;
		                }
		            }
		            zhdijikuai = 0;
		        } else {
		            if (strRadioq == "是") {
		                if (housearea < 90) {
		                    qishui = houseprice * 1 / 100;
		                } else if (90 < housearea < 140 || housearea == 90) {
		                    qishui = houseprice * 1.5 / 100;
		                } if (housearea > 140 || housearea == 140) {
		                    qishui = houseprice * 3 / 100;
		                }
		            } else {
		                qishui = houseprice * 3 / 100;
		            }
		            zhdijikuai = houseprice * 10 / 100;
		            if (housearea > 140 || housearea == 140) {
		                yyshui = houseprice * 56 / 1000;
		            } else {
		                yyshui = 0;

		            }
		            yhshui = 0;
		            if (strOnly == "是") {
		                grsdshui = 0;

		            } else {
		                if (strjzfs == "总价") {
		                    grsdshui = houseprice * 1 / 100;
		                } else {
		                    grsdshui = houseprice - houseyprice;
		                    grsdshui = grsdshui * 20 / 100;
		                }
		            }
		            gbshui = 5;
		        }
		        fmobj.qishui.value = qishui;
		        fmobj.yyshui.value = yyshui;
		        fmobj.yhshui.value = yhshui;
		        fmobj.grsdshui.value = grsdshui;
		        fmobj.gbshui.value = gbshui;
		        fmobj.zhdijikuai.value = zhdijikuai;
		        fmobj.heji.value = qishui + yyshui + yhshui + grsdshui + gbshui + zhdijikuai;

		        var dj33 = parseFloat(fwdj);
		        var mj33 = parseFloat(housearea);
		        var fkz3 = dj33 * mj33;
		        yh = fkz3 * 0.0005;
		        if (dj33 <= 9432) q1 = fkz3 * 0.015
		        else if (dj33 > 9432) q1 = fkz3 * 0.03
		        if (mj33 <= 120) fw1 = 500;
		        else if (120 < mj33 <= 5000) fw1 = 1500;
		        if (mj33 > 5000) fw1 = 5000
		        gzh = fkz3 * 0.003
		        fmobj.yh.value = Math.round(yh * 100, 5) / 100
		        fmobj.fkz3.value = Math.round(fkz3 * 100, 5) / 100
		        fmobj.q.value = Math.round(q1 * 100, 5) / 100
		        fmobj.gzh.value = Math.round(gzh * 100, 5) / 100
		        fmobj.wt.value = Math.round(gzh * 100, 5) / 100
		        fmobj.fw.value = Math.round(fw1 * 100, 5) / 100

		    }

		    function getreset(fmobj) {
		        var typeradiox = document.getElementsByName("typeRadio");
		        var strRadiox;

		        for (var i = 0; i < typeradiox.length; i++) {
		            if (typeradiox.item(i).checked) {
		                strRadiox = typeradiox.item(i).getAttribute("value");
		                break;
		            } else {
		                continue;
		            }
		        }
		        fmobj.reset();
		        exc_sf(fmobj, strRadiox);
		    }

		    function sfzj(fmobj) {
		        var housedw = document.getElementById("housedw").value.toString(); //总价单位
		        var mj = fmobj.housearea.value;
		        var djj = fmobj.dj.value;

		        //总价处理
		        if (housedw == "万元") {
		            fmobj.houseprice.value = mj * djj / 10000;
		        } else {

		            fmobj.houseprice.value = mj * djj;
		        }
		    }
